package com.mq.core;


import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

import java.lang.annotation.*;

/**
 * redis监听注解
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Order(Ordered.HIGHEST_PRECEDENCE)
public @interface RedisListener {

    /**
     * 消费的queue
     * @return
     */
    String[] queues();

    /**
     * 容器工厂
     * @return
     */
    String containerFactory() default "";

}
